package com.yyys.web.common;

import com.fasterxml.jackson.annotation.JsonFormat;

@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum Meta {

    SUCCESS(200, ErrorType.SUCCESS, "Success!"),

    ERROR_CODE(406, ErrorType.DEFAULT, "Error code");

	
    private Meta(int code, ErrorType errorType, String errorMessage) {
		this.code = code;
		this.errorType = errorType;
		this.errorMessage = errorMessage;
	}
    
	private int code;
    private ErrorType errorType;
    private String errorMessage;
	
	
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public ErrorType getErrorType() {
		return errorType;
	}
	public void setErrorType(ErrorType errorType) {
		this.errorType = errorType;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	
}
